package com.ef.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class ClassCheckin implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	@ManyToOne(fetch = FetchType.LAZY)
	private Leads leads;

	@ManyToOne(fetch = FetchType.LAZY)
	private Teacher teacher;

	@Column(length = 100)
	private String classType;

	@Column(length = 100)
	private String classLevel;

	@Column(length = 100)
	private String classTopic;

	@Temporal(TemporalType.TIMESTAMP)
	private Date classStartTime;

	@Temporal(TemporalType.TIMESTAMP)
	private Date classEndTime;

	@Temporal(TemporalType.TIMESTAMP)
	private Date checkinTime;
	@Column(length = 100)
	private String checkinUserName;

	private Integer checkinUserId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Leads getLeads() {
		return leads;
	}

	public void setLeads(Leads leads) {
		this.leads = leads;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getClassType() {
		return classType;
	}

	public void setClassType(String classType) {
		this.classType = classType;
	}

	public String getClassLevel() {
		return classLevel;
	}

	public void setClassLevel(String classLevel) {
		this.classLevel = classLevel;
	}

	public String getClassTopic() {
		return classTopic;
	}

	public void setClassTopic(String classTopic) {
		this.classTopic = classTopic;
	}

	public Date getClassStartTime() {
		return classStartTime;
	}

	public void setClassStartTime(Date classStartTime) {
		this.classStartTime = classStartTime;
	}

	public Date getClassEndTime() {
		return classEndTime;
	}

	public void setClassEndTime(Date classEndTime) {
		this.classEndTime = classEndTime;
	}

	public Date getCheckinTime() {
		return checkinTime;
	}

	public void setCheckinTime(Date checkinTime) {
		this.checkinTime = checkinTime;
	}

	public String getCheckinUserName() {
		return checkinUserName;
	}

	public void setCheckinUserName(String checkinUserName) {
		this.checkinUserName = checkinUserName;
	}

	public Integer getCheckinUserId() {
		return checkinUserId;
	}

	public void setCheckinUserId(Integer checkinUserId) {
		this.checkinUserId = checkinUserId;
	}
}
